import request from '@/utils/request'

export function login(username, password) {
  let data = new URLSearchParams();
        data.append('username',username);
        data.append('password',password);
  return request({
    url: '/admin/login',
    method: 'post',
    data: data
  })
}

// export function updateShowStatus(data) {
//   return request({
//     url:'/productCategory/update/showStatus',
//     method:'post',
//     data:data
//   })
// }

export function getInfo() {
  return request({
    url: '/admin/info',
    method: 'get',
  })
}

export function logout() {
  return request({
    url: '/admin/logout',
    method: 'post'
  })
}

export function cs1() {
  return request({
    url: '/cs/cs1',
    method: 'get'
  })
}

export function cs2() {
  return request({
    url: '/cs/cs2',
    method: 'get'
  })
}
export function cs3() {
  return request({
    url: '/cs/cs3',
    method: 'get'
  })
}
export function cs4() {
  return request({
    url: '/cs/cs4',
    method: 'get'
  })
}
export function cs5() {
  return request({
    url: '/cs/cs5',
    method: 'get'
  })
}
export function cs6() {
  return request({
    url: '/cs/cs6',
    method: 'get'
  })
}
export function cs7() {
  return request({
    url: '/cs/cs1',
    method: 'get'
  })
}
export function cs8() {
  return request({
    url: '/cs/cs8',
    method: 'get'
  })
}
export function cs9() {
  return request({
    url: '/cs/cs9',
    method: 'get'
  })
}
export function cs10() {
  return request({
    url: '/cs/cs10',
    method: 'get'
  })
}
export function cs11() {
  return request({
    url: '/cs/cs11',
    method: 'get'
  })
}
export function cs12() {
  return request({
    url: '/cs/cs12',
    method: 'get'
  })
}
export function cs13() {
  return request({
    url: '/cs/cs13',
    method: 'get'
  })
}

